package edu.ccut.saturn.studio.logic;

import edu.ccut.saturn.studio.action.ActionEditor;
import edu.ccut.saturn.studio.core.util.wizard.SaturnWizard;

public class ActionWizard extends SaturnWizard {
	
	@Override
	public void addPages() {
		addPage(new ActionWizardPage());
	}

	@Override
	protected String getEditorID() {
		return ActionEditor.ID;
	}
	
	@Override
	protected String getFileName() {
		return super.getValues().get(ActionWizardPage.ACTION_WIZARD_FILE_NAME) + ".action";
	}

	@Override
	protected String getTemplatePath() {
		Object shape = super.getValues().get(LogicWizardPage.TEMPLATE_SATURNCOMPONENT_NAME);
		
		if (shape != null) {
			return "template/newSaturnAction.ftl";
		}

		return "template/saturnAction.ftl";
	}
}
